package com.guandi.geekbrowser.primary.service.impl;

import com.guandi.geekbrowser.primary.entity.TaskManage;
import com.guandi.geekbrowser.primary.repository.TaskManageRepository;
import com.guandi.geekbrowser.primary.service.TaskManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TaskManageImpl implements TaskManageService {

    @Autowired
    private TaskManageRepository taskManageRepository;
    @Override
    public List<TaskManage> findByUserIdAndDetailIdAndTaskItemId(String userId, Long detailId, Long taskId) {
        return taskManageRepository.findByUserIdAndDetailIdAndTaskItemId(userId, detailId, taskId);
    }

    @Override
    public void save(TaskManage taskManage) {
        taskManageRepository.save(taskManage);
    }
}
